// 日志相关数据api
import request from '@/utils/request'

/**
 *设备故障日志查询
 */
export const deviceErrorLog = (data) => request({
  method: 'post',
  url: '/Log/DeviceError',
  data
})

/**
 *设备通讯日志
 */
export const deviceMsgLog = (data) => request({
  method: 'post',
  url: '/Log/DeviceMsg',
  data
})

/**
 * 登录日志查询
 */
export const loginlog = (data) => request({
  method: 'post',
  url: '/Log/Login',
  data
})

/**
 * 操作日志查询
 */
export const operationLog = (data) => request({
  method: 'post',
  url: '/Log/Operation',
  data
})

/**
 * 系统错误日志
 */
export const systemErrorLog = (data) => request({
  method: 'post',
  url: '/Log/SystemError',
  data
})

/**
 * WCS运行日志
 */
export const wcsRunLog = (data) => request({
  method: 'post',
  url: '/Log/WcsRun',
  data
})

/**
 * Mes通讯日志
 */
export const GetMesCommunicationLogLog = (data) => request({
  method: 'post',
  url: '/Log/GetMesCommunicationLog',
  data
})

/**
 * Mes通讯日志
 */
export const GetMesCommunicationLogBakApi = (data) => request({
  method: 'post',
  url: '/Log/GetMesCommunicationLogBak',
  data
})

// task
// export const demo = (data) => request({
//   method: 'post',
//   url: '/Log/WmsMsg',
//   data
// })
